import useAxiosApi from '/@/utils/useAxiosApi';
const baseUrl = import.meta.env.VITE_APP_EDU_API;

export function getRooms51() {
    return useAxiosApi(baseUrl+`/getRoom?pointid=51`, {
        method: 'POST',
        data: {},
    });
}

export function getRooms52() {
    return useAxiosApi(baseUrl+`/getRoom?pointid=52`, {
        method: 'POST',
        data: {},
    });
}

export function getRoomDetail() {
    return useAxiosApi(baseUrl+`/zhjsBuild`, {
        method: 'GET',
    });
}

export function controlRooms({Roomid, Command}) {
    return useAxiosApi(baseUrl+`/operation`, {
        method: 'POST',
        data: {
            Roomid,
            Command
        },
    });
}
